package com.amose.springcloudoauth2server.authentication.mapper;

import com.amose.springcloudoauth2server.authentication.entity.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author amose
 * @since 2021-07-01
 */
public interface PermissionMapper extends BaseMapper<Permission> {

    /**
     * 基于userId 查询权限列表
     * @param userId 用户编号
     * @return 权限集合
     */
    List<Permission> queryListByUserId(Integer userId);
}
